# -*- coding:utf-8 -*-


from django.db import models
from Apps.common.custommodel import CustomModel


class Corp(CustomModel):
    company_name = models.CharField(null=True, blank=True, max_length=30, verbose_name='企业名称（自定义）')
    enable = models.CharField(null=True, blank=True, default='1', max_length=4, verbose_name='是否启用(0-未启用，1-启用)')
    corpid = models.CharField(null=True, blank=True, max_length=100, verbose_name='企业ID')
    application_secret = models.CharField(null=True, blank=True, max_length=100, verbose_name='应用ID')
    contacts_secret = models.CharField(null=True, blank=True, max_length=100, verbose_name='通讯录ID')

    class Meta:
        db_table = "corp"
        verbose_name = '企业表'
        verbose_name_plural = verbose_name
        ordering = ('-create_time',)

    def __str__(self):
        return self.company_name
